#include <stdio.h>
int Is_Triangle(int a,int b,int c){
	if((a + b > c)&&(a + c > b)&&(b + c > a))
		return 1;
	else
		return 0;
}
int Is_Triangle_Type(int a,int b,int c){
	if(a == b||b == c||a == c){
		if(a != b||b != c||a != c)
			return 2;
		else
			return 1;
	}
	return 0;
}
int main(){
    int a = 0;
    int b = 0;
    int c = 0;
    while(scanf("%d %d %d",&a,&b,&c) != EOF){
    	if(Is_Triangle(a,b,c) == 1){
	    	switch(Is_Triangle_Type(a,b,c)){
	    		case 1:
	    			printf("Equilateral triangle!\n");
	    			break;
	    		case 2:
	    			printf("Isosceles triangle!\n");
	    			break;
	    		case 0:
	    			printf("Ordinary triangle!\n");
	    			break;
			}
		}
		else
			printf("Not a triangle!\n");
	}
    return 0;
}
